//
//  XMThirdVC.m
//  TestView
//
//  Created by lk@wxm on 2024/12/4.
//

#import "XMThirdVC.h"
#import "XMChessBoardView.h"
@interface XMThirdVC ()
@property (nonatomic, strong) XMChessBoardView *chessBoardView;
@end

@implementation XMThirdVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"棋局";
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additiosnal setup after loading the view.
    // 创建棋盘视图，假设我们默认显示8x8模式
    self.chessBoardView = [[XMChessBoardView alloc] initWithBoardSize:10 andFrame:CGRectMake(0, 100, KScreenWidth, KScreenWidth)];
    
    [self.view addSubview:self.chessBoardView];
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
